package com.vdong.trade.order.common.foundation;

import com.vdong.trade.order.common.function.OperationFunction;
import org.lamb.framework.common.util.BeanPlasticityUtill;

/**
 * @description: 基础业务层
 * @author: Mr.WangGang
 * @create: 2018-11-29 上午 10:05
 **/
public class FoundationCRUDOperation{
    private  <T extends Object,DO extends FoundationMO,E extends OperationFunction<DO>>void operation(T t, Class<DO> clazz, E e){
        DO domain = BeanPlasticityUtill.copy(clazz,t);
        domain.timeSet();
        e.execute(domain);
    }
}
